/*
    This Module is a Maven plugin to convert an xml to a java resource bundle
    Copyright (C) 2008  Shams Mahmood

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
package com.smartitengineering.xml2props.xml.parser;

import com.smartitengineering.xml2props.maven.MojoReferenceHolder;

import java.io.File;
import java.io.IOException;
import java.util.Map;
import java.util.Locale;
import java.util.Properties;

/**
 * @author <a href="mailto:shams.mahmood@gmail.com">Shams Mahmood</a>
 * @created Mar 30, 2008 3:27:04 PM
 */

public interface InputParser extends MojoReferenceHolder {
  /**
   * @param pInputFile The input File to parse
   *
   * @return a Map of all the Properties mapped in the input file for all the
   *         Locale
   *
   * @throws IOException if there is an error in processing the input file
   */
  public Map<Locale, Properties> parseInput(File pInputFile)
      throws IOException;

}
